package com.java.demo.controller;

import com.java.demo.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: WHY
 * Date: 2023-07-29
 * Time: 10:26
 */
@Controller
public class UserController3 {
    @Autowired
    private User user;
    public void sayhi(){
        System.out.println("User"+user);
    }

}
